package com.san.hkhospital.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * ClassName:SysuserExample
 * PackageName:com.san.hkhospital.entity
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 19:26
 * 
 */
 
 
public class SysuserExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysuserExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSysuserIdIsNull() {
            addCriterion("sysuser_id is null");
            return (Criteria) this;
        }

        public Criteria andSysuserIdIsNotNull() {
            addCriterion("sysuser_id is not null");
            return (Criteria) this;
        }

        public Criteria andSysuserIdEqualTo(Integer value) {
            addCriterion("sysuser_id =", value, "sysuserId");
            return (Criteria) this;
        }

        public Criteria andSysuserIdNotEqualTo(Integer value) {
            addCriterion("sysuser_id <>", value, "sysuserId");
            return (Criteria) this;
        }

        public Criteria andSysuserIdGreaterThan(Integer value) {
            addCriterion("sysuser_id >", value, "sysuserId");
            return (Criteria) this;
        }

        public Criteria andSysuserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sysuser_id >=", value, "sysuserId");
            return (Criteria) this;
        }

        public Criteria andSysuserIdLessThan(Integer value) {
            addCriterion("sysuser_id <", value, "sysuserId");
            return (Criteria) this;
        }

        public Criteria andSysuserIdLessThanOrEqualTo(Integer value) {
            addCriterion("sysuser_id <=", value, "sysuserId");
            return (Criteria) this;
        }

        public Criteria andSysuserIdIn(List<Integer> values) {
            addCriterion("sysuser_id in", values, "sysuserId");
            return (Criteria) this;
        }

        public Criteria andSysuserIdNotIn(List<Integer> values) {
            addCriterion("sysuser_id not in", values, "sysuserId");
            return (Criteria) this;
        }

        public Criteria andSysuserIdBetween(Integer value1, Integer value2) {
            addCriterion("sysuser_id between", value1, value2, "sysuserId");
            return (Criteria) this;
        }

        public Criteria andSysuserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sysuser_id not between", value1, value2, "sysuserId");
            return (Criteria) this;
        }

        public Criteria andSysuserNameIsNull() {
            addCriterion("sysuser_name is null");
            return (Criteria) this;
        }

        public Criteria andSysuserNameIsNotNull() {
            addCriterion("sysuser_name is not null");
            return (Criteria) this;
        }

        public Criteria andSysuserNameEqualTo(String value) {
            addCriterion("sysuser_name =", value, "sysuserName");
            return (Criteria) this;
        }

        public Criteria andSysuserNameNotEqualTo(String value) {
            addCriterion("sysuser_name <>", value, "sysuserName");
            return (Criteria) this;
        }

        public Criteria andSysuserNameGreaterThan(String value) {
            addCriterion("sysuser_name >", value, "sysuserName");
            return (Criteria) this;
        }

        public Criteria andSysuserNameGreaterThanOrEqualTo(String value) {
            addCriterion("sysuser_name >=", value, "sysuserName");
            return (Criteria) this;
        }

        public Criteria andSysuserNameLessThan(String value) {
            addCriterion("sysuser_name <", value, "sysuserName");
            return (Criteria) this;
        }

        public Criteria andSysuserNameLessThanOrEqualTo(String value) {
            addCriterion("sysuser_name <=", value, "sysuserName");
            return (Criteria) this;
        }

        public Criteria andSysuserNameLike(String value) {
            addCriterion("sysuser_name like", value, "sysuserName");
            return (Criteria) this;
        }

        public Criteria andSysuserNameNotLike(String value) {
            addCriterion("sysuser_name not like", value, "sysuserName");
            return (Criteria) this;
        }

        public Criteria andSysuserNameIn(List<String> values) {
            addCriterion("sysuser_name in", values, "sysuserName");
            return (Criteria) this;
        }

        public Criteria andSysuserNameNotIn(List<String> values) {
            addCriterion("sysuser_name not in", values, "sysuserName");
            return (Criteria) this;
        }

        public Criteria andSysuserNameBetween(String value1, String value2) {
            addCriterion("sysuser_name between", value1, value2, "sysuserName");
            return (Criteria) this;
        }

        public Criteria andSysuserNameNotBetween(String value1, String value2) {
            addCriterion("sysuser_name not between", value1, value2, "sysuserName");
            return (Criteria) this;
        }

        public Criteria andSysuserPswIsNull() {
            addCriterion("sysuser_psw is null");
            return (Criteria) this;
        }

        public Criteria andSysuserPswIsNotNull() {
            addCriterion("sysuser_psw is not null");
            return (Criteria) this;
        }

        public Criteria andSysuserPswEqualTo(String value) {
            addCriterion("sysuser_psw =", value, "sysuserPsw");
            return (Criteria) this;
        }

        public Criteria andSysuserPswNotEqualTo(String value) {
            addCriterion("sysuser_psw <>", value, "sysuserPsw");
            return (Criteria) this;
        }

        public Criteria andSysuserPswGreaterThan(String value) {
            addCriterion("sysuser_psw >", value, "sysuserPsw");
            return (Criteria) this;
        }

        public Criteria andSysuserPswGreaterThanOrEqualTo(String value) {
            addCriterion("sysuser_psw >=", value, "sysuserPsw");
            return (Criteria) this;
        }

        public Criteria andSysuserPswLessThan(String value) {
            addCriterion("sysuser_psw <", value, "sysuserPsw");
            return (Criteria) this;
        }

        public Criteria andSysuserPswLessThanOrEqualTo(String value) {
            addCriterion("sysuser_psw <=", value, "sysuserPsw");
            return (Criteria) this;
        }

        public Criteria andSysuserPswLike(String value) {
            addCriterion("sysuser_psw like", value, "sysuserPsw");
            return (Criteria) this;
        }

        public Criteria andSysuserPswNotLike(String value) {
            addCriterion("sysuser_psw not like", value, "sysuserPsw");
            return (Criteria) this;
        }

        public Criteria andSysuserPswIn(List<String> values) {
            addCriterion("sysuser_psw in", values, "sysuserPsw");
            return (Criteria) this;
        }

        public Criteria andSysuserPswNotIn(List<String> values) {
            addCriterion("sysuser_psw not in", values, "sysuserPsw");
            return (Criteria) this;
        }

        public Criteria andSysuserPswBetween(String value1, String value2) {
            addCriterion("sysuser_psw between", value1, value2, "sysuserPsw");
            return (Criteria) this;
        }

        public Criteria andSysuserPswNotBetween(String value1, String value2) {
            addCriterion("sysuser_psw not between", value1, value2, "sysuserPsw");
            return (Criteria) this;
        }

        public Criteria andStateIdIsNull() {
            addCriterion("state_id is null");
            return (Criteria) this;
        }

        public Criteria andStateIdIsNotNull() {
            addCriterion("state_id is not null");
            return (Criteria) this;
        }

        public Criteria andStateIdEqualTo(Integer value) {
            addCriterion("state_id =", value, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdNotEqualTo(Integer value) {
            addCriterion("state_id <>", value, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdGreaterThan(Integer value) {
            addCriterion("state_id >", value, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("state_id >=", value, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdLessThan(Integer value) {
            addCriterion("state_id <", value, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdLessThanOrEqualTo(Integer value) {
            addCriterion("state_id <=", value, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdIn(List<Integer> values) {
            addCriterion("state_id in", values, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdNotIn(List<Integer> values) {
            addCriterion("state_id not in", values, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdBetween(Integer value1, Integer value2) {
            addCriterion("state_id between", value1, value2, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdNotBetween(Integer value1, Integer value2) {
            addCriterion("state_id not between", value1, value2, "stateId");
            return (Criteria) this;
        }

        public Criteria andRoleIdIsNull() {
            addCriterion("role_id is null");
            return (Criteria) this;
        }

        public Criteria andRoleIdIsNotNull() {
            addCriterion("role_id is not null");
            return (Criteria) this;
        }

        public Criteria andRoleIdEqualTo(Integer value) {
            addCriterion("role_id =", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotEqualTo(Integer value) {
            addCriterion("role_id <>", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdGreaterThan(Integer value) {
            addCriterion("role_id >", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("role_id >=", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLessThan(Integer value) {
            addCriterion("role_id <", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLessThanOrEqualTo(Integer value) {
            addCriterion("role_id <=", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdIn(List<Integer> values) {
            addCriterion("role_id in", values, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotIn(List<Integer> values) {
            addCriterion("role_id not in", values, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdBetween(Integer value1, Integer value2) {
            addCriterion("role_id between", value1, value2, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("role_id not between", value1, value2, "roleId");
            return (Criteria) this;
        }

        public Criteria andPatientIdIsNull() {
            addCriterion("patient_id is null");
            return (Criteria) this;
        }

        public Criteria andPatientIdIsNotNull() {
            addCriterion("patient_id is not null");
            return (Criteria) this;
        }

        public Criteria andPatientIdEqualTo(Integer value) {
            addCriterion("patient_id =", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotEqualTo(Integer value) {
            addCriterion("patient_id <>", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdGreaterThan(Integer value) {
            addCriterion("patient_id >", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("patient_id >=", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdLessThan(Integer value) {
            addCriterion("patient_id <", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdLessThanOrEqualTo(Integer value) {
            addCriterion("patient_id <=", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdIn(List<Integer> values) {
            addCriterion("patient_id in", values, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotIn(List<Integer> values) {
            addCriterion("patient_id not in", values, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdBetween(Integer value1, Integer value2) {
            addCriterion("patient_id between", value1, value2, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotBetween(Integer value1, Integer value2) {
            addCriterion("patient_id not between", value1, value2, "patientId");
            return (Criteria) this;
        }

        public Criteria andEmpIdIsNull() {
            addCriterion("emp_id is null");
            return (Criteria) this;
        }

        public Criteria andEmpIdIsNotNull() {
            addCriterion("emp_id is not null");
            return (Criteria) this;
        }

        public Criteria andEmpIdEqualTo(Integer value) {
            addCriterion("emp_id =", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotEqualTo(Integer value) {
            addCriterion("emp_id <>", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdGreaterThan(Integer value) {
            addCriterion("emp_id >", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("emp_id >=", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdLessThan(Integer value) {
            addCriterion("emp_id <", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdLessThanOrEqualTo(Integer value) {
            addCriterion("emp_id <=", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdIn(List<Integer> values) {
            addCriterion("emp_id in", values, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotIn(List<Integer> values) {
            addCriterion("emp_id not in", values, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdBetween(Integer value1, Integer value2) {
            addCriterion("emp_id between", value1, value2, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotBetween(Integer value1, Integer value2) {
            addCriterion("emp_id not between", value1, value2, "empId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}